<!DOCTYPE html>
<html lang="zh">
<head>
<title>店铺管理 | OMS</title>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="Thu, 19 Nov 1900 08:52:00 GMT" />

<!-- 加载 bootstrap 样式-->
<link type="text/css" rel="stylesheet"
	href="/Apollo/madmin/vendors/jquery-ui-1.10.4.custom/css/ui-lightness/jquery-ui-1.10.4.custom.min.css" />
<link type="text/css" rel="stylesheet"
	href="/Apollo/madmin/vendors/font-awesome/css/font-awesome.min.css" />
<link type="text/css" rel="stylesheet"
	href="/Apollo/madmin/vendors/bootstrap/css/bootstrap.min.css" />

<!-- 加载本页需要的三方插件样式 -->
<link type="text/css" rel="stylesheet"
	href="/Apollo/madmin/vendors/DataTables/media/css/jquery.dataTables.css">
<link type="text/css" rel="stylesheet"
	href="/Apollo/madmin/vendors/DataTables/extensions/TableTools/css/dataTables.tableTools.min.css">
<link type="text/css" rel="stylesheet"
	href="/Apollo/madmin/vendors/DataTables/media/css/dataTables.bootstrap.css">
<link type="text/css" rel="stylesheet"
	href="/Apollo/madmin/vendors/jquery-tablesorter/themes/blue/style-custom.css">
<link type="text/css" rel="stylesheet"
	href="/Apollo/madmin/vendors/jquery-bootstrap-wizard/custom.css">
<link type="text/css" rel="stylesheet"
	href="/Apollo/madmin/vendors/jquery-steps/css/jquery.steps.css">
<link type="text/css" rel="stylesheet"
	href="/Apollo/madmin/vendors/animate.css/animate.css" />
<link type="text/css" rel="stylesheet"
	href="/Apollo/madmin/vendors/iCheck/skins/all.css" />
<link type="text/css" rel="stylesheet"
	href="/Apollo/madmin/vendors/bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css">

<!-- 加载主题风格样式 -->
<link type="text/css" rel="stylesheet"
	href="/Apollo/madmin/css/themes/style1/orange-blue.css"
	class="default-style" />
<link type="text/css" rel="stylesheet"
	href="/Apollo/madmin/css/themes/style1/orange-blue.css"
	id="theme-change" class="style-change color-change" />
<link type="text/css" rel="stylesheet"
	href="/Apollo/madmin/css/style-responsive.css" />
</head>
<body class="">
	<!--BEGIN CONTENT-->
	<div class="page-content">
		<div class="container-fluid">
			<div class="row">
				<div class="col-lg-8 col-xs-8 col-sm-8 col-md-8"
					style="line-height: 36px;">
					<div class="actions">
						<!-- <a href="#" class="btn btn-xs btn-info" onclick="newShopWizard()">
							<i class="fa"></i>&nbsp;创建店铺
						</a> -->
					</div>
				</div>
				<div class="col-lg-4 col-xs-4 col-sm-4 col-md-4"
					style="margin-bottom: 10px;">
					<div class="input-group">
						<input id="quickSearch" type="text" placeholder="店铺名称"
							class="form-control" /> <span class="input-group-btn">
							<button id="btnQuickSearch" type="button" class="btn btn-primary">
								<i class="fa fa-search"></i>
							</button>
						</span>
					</div>
				</div>
			</div>
			<div class="row">
				<div class="col-lg-12">
					<div class="portlet box portlet-blue" style="margin-bottom: 15px;">
						<div class="portlet-header">
							<div class="caption">店铺列表</div>
							<!-- <div class="actions">
                                	<a href="#" class="btn btn-xs btn-warning" onclick="newShopWizard()">
                                		<i class="fa fa-plus"></i>&nbsp;创建店铺
                                	</a>
                                	增加导出店铺功能  
                                    &nbsp;
                                	<a href="#" class="btn btn-xs btn-orange" data-toggle="" data-target="" onclick="exportList('shopTable','/shop/exportCheck.action','/shop/export.action','exportSelectShop','ExportShop','','')">
                                		<i class="fa fa-save"></i>&nbsp;导出店铺
                                	</a>&nbsp;
                                	
                                </div> -->
						</div>
						<div class="portlet-body">
							<table id="shopTable"
								class="table table-hover table-striped table-bordered table-advanced tb-sticky-header"
								width="100%">
								<thead>
									<tr>
										<th width="15%" colValue="shopName">店铺名称</th>
										<th width="8%" colValue="shopType">所属平台</th>
										<!-- <th width="10%" colValue="shopAccount">平台帐号</th> -->
										<!-- <th width="4%" colValue="validateStatus">验证</th> -->
										<th width="4%" colValue="status">启用</th>
										<th width="17%" colValue="prjName">所属项目</th>
										<!-- <th width="10%" colValue="parentshopname">父店铺</th> -->
										<th width="12%" colValue="expireTime">到期时间</th>
										<th width="20%" mincolValue="operation">操作</th>
									</tr>
								<tbody>

								</tbody>
								</thead>
							</table>

						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<!-- ====================================== 窗口区 ===================================== -->
	<div id="newShopWizard" tabindex="-1" role="dialog" aria-hidden="true"
		data-backdrop="static" class="modal fade">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header modal-header-primary">
					<button type="button" data-dismiss="modal" aria-hidden="true"
						class="close">x</button>
					<h4 id="modal-header-primary-label" class="modal-title">创建店铺向导</h4>
				</div>
				<div class="modal-body">
					<div id="rootwizard-custom-circle">
						<div class="navbar">
							<div class="navbar-inner">
								<ul style="pointer-events: none;">
									<li><a href="#tab1-wizard-custom-circle" data-toggle="tab"><i
											class="glyphicon glyphicon-user"></i>
											<p class="anchor"></p>
											<p class="description">选择电商平台</p></a></li>
									<li><a href="#tab2-wizard-custom-circle" data-toggle="tab"><i
											class="glyphicon glyphicon-send mln"></i>
											<p class="anchor"></p>
											<p class="description">验证</p></a></li>
									<li><a href="#tab3-wizard-custom-circle" data-toggle="tab"><i
											class="glyphicon glyphicon-cog"></i>
											<p class="anchor"></p>
											<p class="description">设置</p></a></li>
									<li><a href="#tab4-wizard-custom-circle" data-toggle="tab"><i
											class="glyphicon glyphicon-ok"></i>
											<p class="anchor"></p>
											<p class="description">完成</p></a></li>
								</ul>
							</div>
						</div>
						<div id="bar" class="progress active">
							<div class="bar progress-bar progress-bar-primary"></div>
						</div>
						<div class="tab-content" style="margin: 0; padding-bottom: 0;">
							<div id="tab1-wizard-custom-circle" class="tab-pane">
								<h3 class="mbxl">选择平台</h3>
								<form id="formShopTypeSelect" role="form" action="#"
									class="form-horizontal">
									<div class="form-group">
										<label for="prjId" class="col-sm-3 control-label">项目：
											<span class='require'>*</span>
										</label>
										<div class="col-sm-9">
											<select id="prjId" name="prjId" class="form-control" required>
												<option value="">请选择</option>
											</select> <i class="alert alert-hide">项目是必选项</i>
										</div>
									</div>
									<div class="form-group">
										<label for="shopType" class="col-sm-3 control-label">平台：
											<span class='require'>*</span>
										</label>
										<div class="col-sm-9">
											<select id="shopType" name="shopType" class="form-control"
												required>
												<option value="">请选择</option>
												<option value="商城">商城</option>
												<!-- <option value="淘宝">淘宝</option>
												<option value="京东">京东</option>
												<option value="小V铺">小V铺</option>
												<option value="唯品会直发">唯品会直发</option>
												<option value="淘宝分销">淘宝分销</option>
												<option value="网易考拉">网易考拉</option>
												<option value="小红书">小红书</option>
												<option value="苏宁">苏宁</option> -->
											</select> <i class="alert alert-hide">平台是必选项</i>
										</div>
									</div>
									<div class="form-group">
										<label for="channel" class="col-sm-3 control-label">渠道：
											&nbsp; </label>
										<div class="col-sm-9">
											<select id="channel" name="channel" class="form-control">
												<option value="">请选择</option>
											</select>
										</div>
									</div>
								</form>
							</div>

							<div id="tab2-wizard-custom-circle" class="tab-pane">
								<h3 class="mbxl">设置帐号</h3>
								<form id="validateForm" role="form" action=""
									class="form-horizontal">
									<div class="form-group">
										<label for="shopName" class="col-sm-3 control-label">店铺名称：
											<span class='require'>*</span>
										</label>
										<div class="col-sm-9">
											<input id="shopName" name="shopName" type="text"
												placeholder="" minlength="1" maxlength="50"
												class="form-control required" />
										</div>
									</div>
									<!-- <div class="form-group">
										<label for="shopAccount" class="col-sm-3 control-label">店铺帐号：
											<span class='require'>*</span>
										</label>
										<div class="col-sm-9">
											<input id="shopAccount" name="shopAccount" type="text"
												placeholder="" minlength="1" maxlength="50"
												class="form-control required" />
										</div>
									</div>
									<div class="form-group">
										<label for="shopPassword" class="col-sm-3 control-label">店铺密码：
											<span class='require'>*</span>
										</label>
										<div class="col-sm-9">
											<input id="shopPassword" name="shopPassword" type="password"
												placeholder="" minlength="1" maxlength="50"
												class="form-control required" />
										</div>
									</div>-->
									<div class="form-group">
										<label for="expireTime1" class="col-sm-3 control-label">到期时间：
											<span class='require'>*</span>
										</label>
										<div class="col-sm-9">
											<div id="divExpireTime1"
												class="input-group datetimepicker-default date">
												<div style="float: left;">
													<input id="expireTime1" name="expireTime1" type="text"
														class="form-control greaterThenNow readonly required"
														placeholder="" data-format="YYYY-MM-DD HH:mm:ss" readonly />
												</div>
												<div style="float: left; cursor: pointer;">
													<span class="input-group-addon" style="height: 34px;"><i
														class="fa fa-calendar"></i></span>
												</div>
											</div>
										</div>
									</div> 
									<div class="form-group">
										<label for="appKey" class="col-sm-3 control-label">app_key：
											<span class='require'>*</span>
										</label>
										<div class="col-sm-9">
											<input id="appKey" name="appKey" type="text" placeholder=""
												minlength="1" maxlength="50" class="form-control required" />
										</div>
									</div>
									<!-- <div class="form-group">
										<label for="appSecret" class="col-sm-3 control-label">app_secret：
											<span class='require'>*</span>
										</label>
										<div class="col-sm-7">
											<input id="appSecret" name="appSecret" type="password"
												placeholder="" minlength="6" maxlength="50"
												class="form-control required" />
										</div>
										<div class="col-sm-2">
											<button type="button" id="validateShop"
												class="btn btn-success">
												<i class="fa fa-check"></i>验&nbsp;证
											</button>
										</div>
									</div> -->
								</form>
							</div>

							<div id="tab3-wizard-custom-circle" class="tab-pane">
								<h3 class="mbxl">设置</h3>
								<form id="formSettings" role="form" action="#"
									class="form-horizontal">
									<div class="note note-warning">
										<!--  <p>1、如店铺需要分单，则必须配置“分单规则”。</p> -->
										<p>启用以后，需要到调度中心启动任务。</p>
									</div>
									<div class="form-group" style="display: none;">
										<label for="needSplitOrder" class="col-sm-3 control-label">需要分单？<span
											class='require'>*</span>
										</label>
										<div class="col-sm-9">
											<select id="needSplitOrder" name="enable"
												class="form-control" required disabled="disabled">
												<option value="n" selected="selected">否</option>
												<option value="y">是</option>
											</select> <i class="alert alert-hide">需要分单是必选项</i>
										</div>
									</div>
									<div class="form-group" style="display: none;">
										<label for="parentShop" class="col-sm-3 control-label">父店铺
										</label>
										<div class="col-sm-9">
											<select id="parentShop" name="enable" class="form-control"
												disabled="disabled">

											</select> <i class="alert alert-hide">需要拆单必须设置父店铺</i>
										</div>
									</div>
									<div class="form-group">
										<label for="enable" class="col-sm-3 control-label">立即启用？<span
											class='require'>*</span>
										</label>
										<div class="col-sm-9">
											<select id="enable" name="enable" class="form-control"
												required>
												<option value="y" selected="selected">启用</option>
												<option value="n">不启用</option>
											</select> <i class="alert alert-hide">启用店铺是必选项</i>
										</div>
									</div>
								</form>
							</div>

							<div id="tab4-wizard-custom-circle" class="tab-pane fadeIn">
								<h3 class="mbxl">请确认保存</h3>
								<p>确认以上的店铺设置，并保存店铺吗？</p>
							</div>

							<div class="action text-right">
								<button type="button" name="previous" value="Previous"
									class="btn btn-info button-previous">
									<i class="fa fa-arrow-circle-o-left mrx"></i>上一步
								</button>
								<button type="button" name="next" value="Next"
									class="btn btn-info button-next mlm">
									下一步<i class="fa fa-arrow-circle-o-right mlx"></i>
								</button>
								<button type="button" id="btnShopWizardOK" aria-hidden="true"
									class="btn btn-primary" onclick="shopWizardFinish()">保存</button>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>

	<!-- 导出文件 
		<div id="exportList" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static" class="modal fade" aria-labelledby="modal-header-primary-label">
		</div>
		-->
	<!-- 店铺编辑页 modal-wide-width-label-->
	<div id="modalEdit" shopid="" shopname="" tabindex="-1" role="dialog"
		aria-labelledby="modal-header-primary-label" data-backdrop="static"
		aria-hidden="true" class="modal fade">
		<div class="modal-dialog" style="width: 800px;">
			<div class="modal-content">
				<div class="modal-header modal-header-primary">
					<button type="button" data-dismiss="modal" aria-hidden="true"
						class="close">&times;</button>
					<h4 id="modal-header-primary-label" class="modal-title">店铺详情</h4>
				</div>
				<div class="modal-body" style="overflow-y:auto; overflow-x:auto;height: 450px">
					<form id="shopDetailForm" role="form" action=""
						class="form-horizontal">
						<ul id="generalTab" class="nav nav-tabs ul-edit responsive">
							<li class="active"><a href="#detail-tab" data-toggle="tab">店铺详情</a></li>
							<li class=""><a href="#validinfo-tab" data-toggle="tab">验证设置</a></li>
							<li><a href="#warehouse-tab" data-toggle="tab">仓库设置</a></li>
						</ul>
						<div id="generalTabContent" class="tab-content responsive">
							<div id="detail-tab" class="tab-pane fade in active">
								<div class="form-group">
									<label for="shopName1" class="col-sm-3 control-label">店铺名称<span
										class='require'>*</span>
									</label>
									<div class="col-sm-9">
										<input id="shopName1" name="shopName1" type="text"
											placeholder="" minlength="1" maxlength="50"
											class="form-control required" required disabled />
									</div>

								</div>
								<div class="form-group">
									<label for="prjId1" class="col-sm-3 control-label">所属项目
										<span class='require'>*</span>
									</label>
									<div class="col-sm-9">
										<select id="prjId1" name="prjId1" class="form-control"
											required disabled>
											<option value="">请选择</option>
										</select>
									</div>
								</div>
								<div class="form-group">
									<label for="shopType1" class="col-sm-3 control-label">所属平台
										<span class='require'>*</span>
									</label>
									<div class="col-sm-9">
										<select id="shopType1" name="shopType1" class="form-control"
											required disabled>
											<option value="">请选择</option>
											<option value="商城">商城</option>
											<!-- <option value="淘宝">淘宝</option>
											<option value="京东">京东</option>
											<option value="小V铺">小V铺</option>
											<option value="唯品会直发">唯品会直发</option>
											<option value="淘宝分销">淘宝分销</option>
											<option value="网易考拉">网易考拉</option>
											<option value="小红书">小红书</option>
											<option value="苏宁">苏宁</option> -->
										</select>
									</div>
								</div>
								<div class="form-group">
									<label for="channel1" class="col-sm-3 control-label">所属渠道
										&nbsp; </label>
									<div class="col-sm-9">
										<select id="channel1" name="channel1" class="form-control">
											<option value="">请选择</option>
										</select>
									</div>
								</div>
								<!-- <div class="form-group">
        								<label for="needSplitOrder1" class="col-sm-3 control-label">是否分单 <span class='require'>*</span>
        								</label>
        								<div class="col-sm-9">
                                             <select id="needSplitOrder1" name="needSplitOrder1" class="form-control" required disabled>
                                                 <option value="n" selected = "selected">否</option>
                                                 <option value="y">是</option>
                                             </select>
        								</div>
        							</div> -->
								<!-- <div class="form-group">
        								<label for="parentShop1" class="col-sm-3 control-label">父店铺
        								</label>
        								<div class="col-sm-9">
                                             <select id="parentShop1" name="parentShop1" class="form-control" >
        
                                             </select>
        								</div>
        							</div> -->
								<div class="form-group">
									<label for="expireTime" class="col-sm-3 control-label">到期时间
									</label>
									<div class="col-sm-9">
										<div class="input-group datetimepicker-default date">
											<input id="expireTime" name="expireTime" type="text"
												class="form-control greaterThenNow readonly" placeholder=""
												data-format="YYYY-MM-DD HH:mm:ss" readonly /> <span
												class="input-group-addon"><i class="fa fa-calendar"></i></span>
										</div>
									</div>
								</div>
								<div class="form-group">
									<label for="remark" class="col-sm-3 control-label">备注 </label>
									<div class="col-sm-9">
										<textarea id="remark" rows="2" name="remark" placeholder=""
											maxlength="255" class="form-control"></textarea>
									</div>
								</div>
							</div>
							<div id="validinfo-tab" class="tab-pane fade">
								<!-- <div class="form-group">
									<label for="apiUrl" class="col-sm-3 control-label">api_url
									</label>
									<div class="col-sm-9">
										<input id="apiUrl" name="apiUrl" type="text" placeholder=""
											maxlength="200" class="form-control" />
									</div>

								</div> -->
								<div class="form-group">
									<label for="appKey2" class="col-sm-3 control-label">app_key
									</label>
									<div class="col-sm-3">
										<input id="appKey2" name="appKey2" type="text" placeholder=""
											maxlength="100" class="form-control" readonly="readonly"/>
									</div>
									<!-- <label for="appSecret2" class="col-sm-3 control-label">app_secret
									</label>
									<div class="col-sm-3">
										<input id="appSecret2" name="appSecret2" type="text"
											placeholder="" maxlength="100" class="form-control" />
									</div> -->
								</div>
								<!-- <div class="form-group">
									<label for="sessionKey" class="col-sm-3 control-label">session_key
									</label>
									<div class="col-sm-3">
										<input id="sessionKey" name="sessionKey" type="text"
											placeholder="" maxlength="100" class="form-control" />
										<input id="sessionKeyPrev" name="sessionKeyPrev" type="hidden"/>
									</div>
									<label for="refreshToken" class="col-sm-3 control-label">refresh_token
									</label>
									<div class="col-sm-3">
										<input id="refreshToken" name="refreshToken" type="text"
											placeholder="" maxlength="200" class="form-control" />
									</div>
								</div>
								<div class="form-group">
									<label for="sessionKey" class="col-sm-3 control-label">&nbsp;
									</label>
									<div class="col-sm-3">&nbsp;</div>
									<label for="refreshToken" class="col-sm-3 control-label">&nbsp;
									</label>
									<div class="col-sm-3">
										<button id="btnValidation" type="button" class="btn btn-info pull-right">验证</button>
									</div>
								</div>
								<hr />
								<div class="form-group">
									<label for="dbUrl" class="col-sm-3 control-label">db_url
									</label>
									<div class="col-sm-9">
										<input id="dbUrl" name="dbUrl" type="text" placeholder=""
											maxlength="254" class="form-control" />
									</div>
								</div>
								<div class="form-group">
									<label for="dbUsername" class="col-sm-3 control-label">db_username
									</label>
									<div class="col-sm-3">
										<input id="dbUsername" name="dbUsername" type="text"
											placeholder="" maxlength="100" class="form-control" />
									</div>
									<label for="dbPassword" class="col-sm-3 control-label">db_password
									</label>
									<div class="col-sm-3">
										<input id="dbPassword" name="dbPassword" type="password"
											placeholder="" maxlength="100" class="form-control" />
									</div>
								</div> -->
							</div>
							<div id="warehouse-tab" class="tab-pane fade">
								<div class="portlet-body">
									<div class="row">
										<button id="btnSelectWarehouse" style="margin: 10px 10px;"
											class="btn btn-default pull-left">添加仓库</button>
										<button id="btnSelectDefaultReturnWarehouse"
											style="margin: 10px 10px;" class="btn btn-default pull-left">设置退货仓库</button>
									</div>
									<div class="row">
										<table id="shopWarehouseTable"
											style="table-layout: fixed; width: 100%;"
											class="table table-hover table-striped table-bordered table-advanced">
											<thead>
												<tr>
													<th width="3%" colValue="chkbox"><input id="checkall"
														type='checkbox' class="icheck checkall" /></th>
													<th width="5%" colValue="isDefault">默认</th>
													<th width="35%" colValue="storName">仓库名称</th>
													<th width="5%" colValue="isSyncStock">同步</th>
													<th width="25%" colValue="returnStor">退货仓库</th>
													<th width="35%" colValue="remark">备注</th>
													<th width="20%" mincolValue="operation">操作</th>
													<th width="0%" mincolValue="shopStorId"></th>
												</tr>
											<tbody>

											</tbody>
											</thead>
										</table>
									</div>
								</div>
							</div>
						</div>
					</form>
				</div>
				<div class="modal-footer">
					<button type="button" data-dismiss="modal" class="btn btn-default">关闭</button>
					<button id="btnShopDetailSave" type="button"
						class="btn btn-primary">保存</button>
				</div>
			</div>
		</div>
	</div>

	<!-- 仓库选择页 -->
	<div id="modalWarehouseSelect" shopid="" shopname="" tabindex="-1"
		role="dialog" aria-labelledby="modal-header-primary-label"
		data-backdrop="static" aria-hidden="true" class="modal fade">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header modal-header-primary">
					<button type="button" data-dismiss="modal" aria-hidden="true"
						class="close">&times;</button>
					<h4 id="modal-header-select-warehouse" class="modal-title">添加仓库</h4>
				</div>
				<div class="modal-body">
					<form id="warehouseSelectForm" role="form" action=""
						class="form-horizontal">
						<div class="form-group">
							<label for="storSelect" class="col-sm-3 control-label">仓库名称：<span
								class='require'>*</span>
							</label>
							<div class="col-sm-9">
								<select id="storSelect" name="storSelect" class="form-control"
									required>
									<option value="">请选择</option>
								</select> <input id="shopStorId" type="text" class="hidden" />
							</div>
						</div>
						<div class="form-group">
							<ul class="list-unstyled">
								<li class="pbm" style="margin-left: 20px;"><label
									for="isDefault" class="col-sm-3 control-label">是否默认：</label> <input
									id="isDefault" type="checkbox" class="col-sm-9" /></li>
							</ul>
						</div>
						<div class="form-group">
							<ul class="list-unstyled">
								<li class="pbm" style="margin-left: 20px;"><label
									for="isSyncStock" class="col-sm-3 control-label">是否同步：</label>
									<input id="isSyncStock" type="checkbox" class="col-sm-9"
									checked /></li>
							</ul>
						</div>
						<div class="form-group">
							<label for="warehouseRemark" class="col-sm-3 control-label">备注：
							</label>
							<textarea id="warehouseRemark" rows="2" name="warehouseRemark"
								placeholder="" maxlength="255" class="col-sm-9"></textarea>
						</div>
					</form>
				</div>
				<div class="modal-footer">
					<button type="button" data-dismiss="modal" class="btn btn-default">关闭</button>
					<button id="btnWarehouseSelectOK" type="button"
						class="btn btn-primary">添加</button>
				</div>
			</div>
		</div>
	</div>

	<!-- 默认退货仓库选择页 -->
	<div id="modalDefaultReturnWarehouseSelect" shopid="" shopname=""
		tabindex="-1" role="dialog"
		aria-labelledby="modal-header-primary-label" data-backdrop="static"
		aria-hidden="true" class="modal fade">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header modal-header-primary">
					<button type="button" data-dismiss="modal" aria-hidden="true"
						class="close">&times;</button>
					<h4 id="modal-header-select-warehouse" class="modal-title">设置退货仓库</h4>
				</div>
				<div class="modal-body">
					<form id="defaultReturnWarehouseSelectForm" role="form" action=""
						class="form-horizontal">
						<div class="form-group">
							<label for="storSelect" class="col-sm-3 control-label">退货仓库：
							</label>
							<div class="col-sm-9">
								<select id="returnStorSelect" name="returnStorSelect"
									class="form-control" required>
									<option value="">空</option>
								</select>
							</div>
						</div>
						<div class="form-group" style="display: none;">
							<label for="shopStorIds" class="col-sm-3 control-label">可选店铺仓库主键：
							</label>
							<div class="col-sm-9">
								<input id="shopStorIds" type="hidden" class="form-control" />
							</div>
						</div>
					</form>
				</div>
				<div class="modal-footer">
					<button type="button" data-dismiss="modal" class="btn btn-default">取消</button>
					<button id="btnDefaultReturnWarehouseSelectOK" type="button"
						class="btn btn-primary">确定</button>
				</div>
			</div>
		</div>
	</div>

	<div id="modalSwitchSet" shopid="" tabindex="-1" role="dialog"
		aria-labelledby="modal-header-primary-label" data-backdrop="static"
		aria-hidden="true" class="modal fade">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header modal-header-primary">
					<button type="button" data-dismiss="modal" aria-hidden="true"
						class="close">&times;</button>
					<h4 id="modal-header-primary-label" class="modal-title"
						style="display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">店铺开关设置</h4>
				</div>
				<div class="modal-body">
					<h3>&nbsp;&nbsp;开关设置</h3>
					<div id="flat-skin" class="row skin skin-flat">
						<div class="col-md-2"></div>
						<div class="col-md-5">
							<ul class="list-unstyled">
								<li class="pbm"><input id="chkIsSyncInventory"
									name="chkIsSyncInventory" type="checkbox" />&nbsp;&nbsp; <label
									for="chkIsSyncInventory">允许同步库存</label></li>
								<li class="pbm"><input id="chkIsAutoPlatformDelivery"
									name="chkIsAutoPlatformDelivery" type="checkbox" />&nbsp;&nbsp;
									<label for="chkIsAutoPlatformDelivery">允许自动平台发货</label></li>
								<li class="pbm"><input id="chkIsAutoGenerateReturn"
									name="chkIsAutoGenerateReturn" type="checkbox" />&nbsp;&nbsp;
									<label for="chkIsAutoGenerateReturn">自动生成退货单</label></li>
							</ul>
						</div>
						<div class="col-md-5">
							<ul class="list-unstyled">
								<li class="pbm"><input id="chkIsAutoAuthen"
									name="chkIsAutoAuthen" tabindex="14" type="checkbox"
									checked="checked" />&nbsp;&nbsp; <label for="chkIsAutoAuthen">允许自动审核</label></li>
								<li class="pbm"><input id="chkIsAutoMergeOrder"
									name="chkIsAutoMergeOrder" type="checkbox" checked="checked" />&nbsp;&nbsp;
									<label for="chkIsAutoMergeOrder">自动合并订单</label></li>
							</ul>
						</div>
					</div>
					<h3>&nbsp;&nbsp;订单审单设置</h3>
					<div id="orderVerifySetting" class="row skin skin-flat">
						<div class="col-md-2"></div>
						<div class="col-md-10">
							<ul class="list-unstyled">
								<li class="pbm"><input id="hasCustRemark" type="checkbox" />&nbsp;&nbsp;
									<label for="hasCustRemark">有买家留言的订单，自动审核为问题单</label></li>
								<li class="pbm"><input id="hasSalesRemark" type="checkbox" />&nbsp;&nbsp;
									<label for="hasSalesRemark">有卖家备注的订单，自动审核为问题单</label></li>
								<li class="pbm"><input id="isCheckCanallotqty"
									type="checkbox" />&nbsp;&nbsp; <label for="isCheckCanallotqty">订单审核检查库存可分派数</label>
								</li>
								<li class="pbm"><input id="orderConsAddrLen"
									style="float: left;" type="checkbox" />&nbsp;&nbsp; <label
									style="float: left; margin-left: 12px;" for="orderConsAddrLen">收货地址超过</label>
									<input id="txtRecAddrLength"
									style="width: 46px; height: 20px; float: left; padding-left: 5px;; padding-right: 5px; margin-left: 5px"
									type="text" class="form-control" value="0" /> <span>个字符自动审核为问题单。（输入0表示不限制）</span>
								</li>
							</ul>
						</div>
					</div>
				</div>
				<div class="modal-footer">
					<button type="button" data-dismiss="modal" class="btn btn-default">关闭</button>
					<button id="btnShopSwitchSetSave" type="button"
						class="btn btn-primary">保存</button>
				</div>
			</div>
		</div>
	</div>

	<!--END CONTENT -->
	<!-- 加载 jquery js-->
	<script src="/Apollo/madmin/js/jquery-1.10.2.min.js"></script>
	<script src="/Apollo/madmin/js/jquery-migrate-1.2.1.min.js"></script>
	<script src="/Apollo/madmin/js/jquery-ui.js"></script>

	<!-- 加载 bootstrap 和三方插件 js -->
	<script src="/Apollo/madmin/vendors/bootstrap/js/bootstrap.min.js"></script>
	<script
		src="/Apollo/madmin/vendors/bootstrap-hover-dropdown/bootstrap-hover-dropdown.js"></script>
	<script src="/Apollo/madmin/js/html5shiv.js"></script>
	<script src="/Apollo/madmin/js/respond.min.js"></script>
	<script src="/Apollo/madmin/vendors/jquery-cookie/jquery.cookie.js"></script>
	<script src="/Apollo/madmin/vendors/iCheck/icheck.min.js"></script>
	<script src="/Apollo/madmin/vendors/iCheck/custom.min.js"></script>
	<script
		src="/Apollo/madmin/vendors/jquery-notific8/jquery.notific8.min.js"></script>
	<script src="/Apollo/madmin/vendors/jquery-pace/pace.min.js"></script>
	<script src="/Apollo/madmin/vendors/holder/holder.js"></script>
	<script src="/Apollo/madmin/vendors/responsive-tabs/responsive-tabs.js"></script>
	<script src="/Apollo/madmin/vendors/moment/moment.js"></script>
	<script
		src="/Apollo/madmin/vendors/bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min.js"></script>
	<script
		src="/Apollo/madmin/vendors/DataTables/media/js/jquery.dataTables.js"></script>
	<script
		src="/Apollo/madmin/vendors/DataTables/media/js/dataTables.bootstrap.js"></script>
	<script
		src="/Apollo/madmin/vendors/DataTables/extensions/TableTools/js/dataTables.tableTools.min.js"></script>
	<script
		src="/Apollo/madmin/vendors/jquery-tablesorter/jquery.tablesorter.js"></script>
	<script src="/Apollo/madmin/js/table-advanced.js"></script>
	<script
		src="/Apollo/madmin/vendors/jquery-validate/jquery.validate.min.js"></script>
	<script src="/Apollo/madmin/vendors/jquery-validate/message_zh.js"></script>
	<script
		src="/Apollo/madmin/vendors/jquery-steps/js/jquery.steps.min.js"></script>
	<script
		src="/Apollo/madmin/vendors/jquery-bootstrap-wizard/jquery.bootstrap.wizard.extend.js"></script>
	<script
		src="/Apollo/madmin/vendors/jquery-inputmask/jquery.inputmask.bundle.min.js"></script>

	<!-- 加载本页面对应的js -->
	<script src="shop.js"></script>
    <script src="shopValidator.js"></script>
	<script src="/views/static/js/export.js"></script>
	<script src="/views/static/js/form.js"></script>
	<script src="/views/static/js/jquery.validate.extend.js"></script>
</body>
</html>